{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form method="POST" action="" name="add_role_form" id="add_role_form">
	<div class="formitems inline">  
		<label class="fi-name"> 用户名称：</label>
		<div class="form-controls">  
			<input type="text" name="role_name" placeholder="" value="{$user_info.nickname}" disabled>
			<span class="fi-help-text"></span>
		</div>  
	</div> 
	<div class="add_role_box">
			<div class="add-role-list">
				<div class="add-role-tit">
					<!--<input type="checkbox" name="checkbox_special" id="checkbox" class="che-t"/>-->
					<label>特殊头衔</label>
				</div>
				<ul>
					{foreach from=$special_list item=special}
						<li><input type="checkbox" name="title_id[]" id="{$special.title_id}" class="che-li" value="{$special.title_id}"{if in_array($special.title_id,$user_title_list)}checked{/if}/><label for="{$special.title_id}">{$special.title_name}</label></li>
					{/foreach}
				</ul>
			</div>
		<span class="fi-help-text"></span>

		<div class="add-role-list">
			<div class="add-role-tit">
				<!--<input type="checkbox" name="checkbox" id="checkbox{$key}" class="che-t"/>-->
				<label>鉴定师头衔</label>
			</div>
			<ul>
				{foreach from=$appraiser_list item=appraiser}
				<li><input type="checkbox" name="title_id[]" id="{$appraiser.title_id}" class="che-li" value="{$appraiser.title_id}" {if in_array($appraiser.title_id,$user_title_list)}checked{/if}/><label for="{$appraiser.title_id}">{$appraiser.title_name}</label></li>
				{/foreach}
			</ul>
		</div>
		<span class="fi-help-text"></span>
	</div>
	<input type="hidden" name="user_id" value="{$user_info.user_id}">
    <div class="t-set-baocun"><button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>保存修改</button>  </div>
</form>
{/block} 

{block name="js"}
<script>
//$(".che-t").click(function(){
//	$(this).parents(".add-role-list").find("input:checkbox[name=priv]").attr("checked",this.checked);
//})
//$('input:checkbox[name="checkbox_special"]').click(function(){
//	generate_special_list();
//});
//
//function generate_special_list()
//{
//	var special_list = '';
//	$('input:checkbox[name="special"]:checked').each(function(){
//		special_list += $(this).val() + ',';
//	});
//	$('#priv_list').val(special_list);
//}

</script>
{/block} 

{block name="css"}
<link rel="stylesheet" href="/Public/Css/acp/AcpRole/add_role.css" type="text/css" />
<style>
	.add-role-list ul li{
		width:auto;
	}
</style>
{/block}
